/*                          UX-Framework                               
 *                                                                 
 *  iZE Co.,Ltd. Copyright 2009 All rights reserved.          
 *  This file is distributed under the terms of the GNU Lesser 
 *  General Public License, described in file LICENSE.                                     
 */
package jp.ize.ux.events;

import jp.ize.ux.UXObject;
#if flash9
import flash.events.FocusEvent;
#end

// {{{ class UXFocusEvent extends FocusEvent
/** 
 * UXFocusEventクラス<br>
 */
class UXFocusEvent extends FocusEvent
{
	// {{{ properties

	/** FocusEventとUXFocusEventを区別する為に用います。*/
	public static var hint : String = "__UX__UXFocusEvent";

	public static var GOT      : String = flash.events.FocusEvent.FOCUS_IN;
	public static var LOST     : String = flash.events.FocusEvent.FOCUS_OUT;
	public static var BY_KEY   : String = flash.events.FocusEvent.KEY_FOCUS_CHANGE;
	public static var BY_MOUSE : String = flash.events.FocusEvent.MOUSE_FOCUS_CHANGE;

	// }}}
	// {{{ public var got(default, null) : UXObject
	/**
	 * フォーカスを得たオブジェクト
	 */
	public var got(default, null) : UXObject;
	// }}}
	// {{{ public var lost(default, null) : UXObject
	/**
	 * フォーカスを失ったオブジェクト
	 */
	public var lost(default, null) : UXObject;
	// }}}
	// {{{ public function new( type : String ) 
	/**
	 * コンストラクタです。
	 */
	public function new( type : String ) 
	{
		super( type );
		// TODO set got and lost.
	}
	// }}}
}
// }}}
